<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_latest
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>
					<div id="mod-food" class="module module-food">
						<h3>Food</h3>
						<h2><?php if ($module->showtitle) { echo $module->title;	 } ?></h2>	 
						<div>
							<div>
<ul id="food-carousel" class="carousel jcarousel-list jcarousel-list-horizontal">
<?php foreach ($list as $item) :  
$images = json_decode($item->images); ?>
	<li>
		<div class="section">
			<a href="<?php echo $item->link; ?>"><img class="image" src="<?php if ($images->image_fulltext=="") echo JURI::base()."/images/noimg.jpg";	else echo JURI::base().$images->image_fulltext; ?>" alt="<?php echo $item->title; ?>" class="" title="<?php echo $item->title; ?>"  width="94" height="95" /></a>
			<h4><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></h4>
																			<?php						
																$words = explode(" ", strip_tags($item->introtext));
																if(count($words) > 15)
																{
																	for($i=0;$i<=15;$i++)
																	{
																		echo $words[$i]." ";
																	}
																	//echo "...";
																}
																else
																{
																	echo strip_tags($item->introtext);
																}
																?>
		</div>	
	</li>
<?php endforeach; ?>
</ul>
							</div>
						</div>
					</div>